﻿<%@ Control Language="C#" Inherits="Yuanlin.Business.CompanyTechnologyEditControl, Yuanlin.Business" AutoEventWireup="true" %>

<%@Register tagPrefix="ctrl" tagName="Editor" src="~/themes/default/skins/Skin-HtmlEditor.ascx" %>

<script type="text/javascript">
<!--
    function CheckValue()
    {
        var title = document.getElementById('<%= titleValuedTextBox.ClientID %>');
        if(title.value.length==0)
        {
            alert('请填写标题！');
            title.focus();
            return false;
        }
        return true;
    }
//-->
</script>
<div class="AdminArea">
    <fieldset>
        <legend><nwap:ResourceLiteral runat="server" ResourceName="System_Applications_Yuanlin_EditCompanyTechnology" ResourceFile="ControlPanelResources.xml"></nwap:ResourceLiteral></legend>
		
		 <div class="ThubnailImage">
            <asp:Image id="viewImage" runat="server" CssClass="imgborder0" width="100" height="80"/>
         </div>
         
		<div class="FormRow">
	        <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="attachmentData" ResourceFile="ControlPanelResources.xml" ResourceName="Attachment_UploadAttachment" />
            <Input type="File" onchange="CheckImage(this)" id="attachmentData" class="InputField MiddleAttachmentDataWidth" runat="server" name="attachmentData" />
        </div>
		
        <div class="FormRow">
            <div class="LargerFieldNameRequireCharacter">
                <nwap:ResourceLabel runat="Server" CssClass="RedColor" ResourceFile="ControlPanelResources.xml" ResourceName="RequireCharacter" />
                <nwap:ResourceLabel runat="Server" ControlToLabel="titleValuedTextBox" ResourceFile="ControlPanelResources.xml" ResourceName="System_Applications_Yuanlin_CompanyTechnology_Title" />
            </div>
            <nwap:ValuedTextBox Runat="server" CssClass="InputField MiddleWidth" id="titleValuedTextBox" />
        </div>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="descriptionValuedEditor" ResourceFile="ControlPanelResources.xml" ResourceName="System_Applications_Yuanlin_CompanyTechnology_Description" />
            <br /><br /><ctrl:Editor Runat="server" Width="100%" Height="250px" id="descriptionValuedEditor" />
        </div>


        <div class="FormRow SubmitButtonRow">
            <nwap:Resourcebutton id="SaveButton" ResourceName="Save" CssClass="Button" Runat="server" OnClientClick="return CheckValue()"></nwap:Resourcebutton>&nbsp;&nbsp;&nbsp;&nbsp;
            <nwap:Resourcebutton id="BackButton" ResourceName="Back" CssClass="Button" Runat="server"></nwap:Resourcebutton>
        </div>	
    </fieldset>
</div>